const pathName = getRootPath();

function getRootPath() {
    let curWwwPath = window.document.location.href;
    let pathName = window.document.location.pathname;
    let pos = curWwwPath.indexOf(pathName);
    let localhostPath = curWwwPath.substring(0, pos);
    let projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
    return localhostPath + projectName;
}

document.write('<link href="' + pathName + '/resources/css/bootstrap.3.3.5.min.css" rel="stylesheet" type="text/css"/>');
document.write('<link href="http://at.alicdn.com/t/font_897828_3mj264gcv99.css" rel="stylesheet" type="text/css"/>');
document.write(' <link href="' + pathName + '/resources/layui/css/layui.css" rel="stylesheet" type="text/css"/>');
document.write('<link href="' + pathName + '/resources/easyui/css/easyui.material.css" rel="stylesheet" type="text/css"/>');
document.write('<script src="' + pathName + '/resources/js/jquery-1.8.2.min.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/easyui/js/jquery.easyui.1.6.7.min.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/easyui/js/easyui-lang-zh_CN.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/layui/layui.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/js/store.js-1.3.20/storejson2.min.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/js/date-tool.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/app/app.js" type="text/javascript"></script>');
document.write('<script src="' + pathName + '/resources/app/tool.js" type="text/javascript"></script>');










